package com.telecom.restaurant.controllor.user;

import com.telecom.restaurant.constant.DataResultConstant;
import com.telecom.restaurant.domin.DataResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by qiqi on 2019/12/17.
 */
@Controller
@RequestMapping("/user/auth")
public class UserAuthController {


    @RequestMapping("/login")
    @ResponseBody
    public DataResult login(String code) {

        DataResult dataResult = DataResultConstant.buildSuccessResult(null);
        return dataResult;
    }

    @RequestMapping("/bind")
    @ResponseBody
    public DataResult bind() {

        DataResult dataResult = DataResultConstant.buildSuccessResult(null);
        return dataResult;
    }
}
